package com.industrial.auth.zhgx.oauth2.properties;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 回调相关配置
 *
 * @Author: lvjix
 * @Copyright: 亿云信息
 * @Date: 2025-02-26 13:04:13:04
 */
@Component
@ConfigurationProperties(prefix = "oup.oauth2")
public class Oauth2Properties {

    /**
     * 应用的id
     */
    private String appId;

    /**
     * 应用的密钥
     */
    private String appSecret;

    /**
     * 回调地址
     */
    private String redirectUrl;

    /**
     * 获取token的url
     */
    private String tokenUrl;

    /**
     * 获取用户信息的url
     */
    private String userInfoUrl;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public String getTokenUrl() {
        return tokenUrl;
    }

    public void setTokenUrl(String tokenUrl) {
        this.tokenUrl = tokenUrl;
    }

    public String getUserInfoUrl() {
        return userInfoUrl;
    }

    public void setUserInfoUrl(String userInfoUrl) {
        this.userInfoUrl = userInfoUrl;
    }
}
